<?php 
$cs=Yii::app()->clientScript;
$cs->registerCssFile(Yii::app()->baseUrl.'/css/form.css');
?>
<div class="yiiForm">
<?php
	echo EHtml::form();	
	EHtml::setOptions(array('errorElement'=> 'span',));		
	EHtml::setScenario($update?'':'create');
?>
<div>注：<span class="required">*</span>为必填项</div>
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'name'); ?>
<?php echo CHtml::activeTextField($model,'name',array('size'=>10,'maxlength'=>10)); ?>
</div>
<div class="simple" style="border-bottom:1px solid #90b3bc;">
<?php echo CHtml::activeLabelEx($model,'priority'); ?>
<?php echo CHtml::activeTextField($model,'priority'); ?>
</div>

<div class="action">
<?php echo CHtml::submitButton($update ? '更新产品系列' : '添加产品系列'); ?>
</div>

<?php echo CHtml::endForm(); ?>

</div><!-- yiiForm -->